//组件信息
var info = {
    groupId: "org.jetlinks",
    artifactId: "jetlinks-pro",
    version: "1.0.0",
    website: "http://github.com/jetlinks",
    comment: "jetlinks"
};

var autzSettings = [{
    "id": "47e28ead7d747f91b31231888ae598f4",
    "permission": "access-logger",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query"),
    "priority": 10,
    "merge": true
}, {
    "id": "e12799df0247472c82052b736a9851b0",
    "permission": "template",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "8b08821516241e189a1a07cef78a49b9",
    "permission": "network-config",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "da018e7581cbcc123748703f2d6cc587",
    "permission": "system-logger",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query"),
    "priority": 10,
    "merge": true
}, {
    "id": "0918ee9da2b9b477f5f9024a03676593",
    "permission": "menu",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "824317629a7149d8ce10fd8b9b26589c",
    "permission": "permission",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete","grant"),
    "priority": 10,
    "merge": true
}, {
    "id": "e43775a36ab4a3e465371e732c468f23",
    "permission": "device-instance",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("stop", "query", "save", "start", "delete", "execute"),
    "priority": 10,
    "merge": true
}, {
    "id": "b6632b5cd5bde8cb931e20c73e57dc1d",
    "permission": "protocol-supports",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "2814b327cf0a124682103a6fdb2ea6e3",
    "permission": "file",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("upload-static"),
    "priority": 10,
    "merge": true
}, {
    "id": "a50469c17d339548d1f3d49d5159e80a",
    "permission": "user",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "4b7272103890be5ab7f9145abb768dc0",
    "permission": "user-token",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save"),
    "priority": 10,
    "merge": true
}, {
    "id": "06daea99c0d4fef7ebfda30a1acb8752",
    "permission": "dimension",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "124262526a59e2e3a0045c0b2ca0bae9",
    "permission": "autz-setting",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "caf2547720e685d7d0ea73e6196385e8",
    "permission": "device-gateway",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "8331ae2910440f6734b1bf6baea1a2db",
    "permission": "dictionary",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "eaa6a9edf146762bddefdc739d0fba74",
    "permission": "notifier",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete", "send"),
    "priority": 10,
    "merge": true
}, {
    "id": "7cdcb2af010abc76e3c84a075945a072",
    "permission": "device-product",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}, {
    "id": "0e53d98e6f778e089dc9f167bbd244fb",
    "permission": "certificate",
    "dimensionType": "user",
    "dimensionTypeName": "用户",
    "dimensionTarget": "1199596756811550720",
    "dimensionTargetName": "1199596756811550720",
    "state": 1,
    "actions": java.util.Arrays.asList("query", "save", "delete"),
    "priority": 10,
    "merge": true
}];

var users = [{
    "id" : "1199596756811550720",
    "username" : "admin",
    "password": "104ffe90cd840e08f7a79c7fddbe1699",
    "salt": "LmKOhcoB",
    "name": "超级管理员",
    "status":1
}];

var menus = [{
    "id": "1507167185484652544",
    "parentId": "1507162853817495552",
    "path": "5Lhl-pvIx",
    "sortIndex": 1,
    "level": 2,
    "name": "设备管理",
    "code": "device",
    "url": "/iot/device",
    "icon": "icon-shebei",
    "status": 1,
    "permissions": [],
    "accessSupport": "unsupported",
    "buttons": [],
    "creatorId": "1199596756811550720",
    "createTime": 1648171633479,
    "supportDataAccess": false
},
    {
        "id": "1509000835335700480",
        "path": "efbr",
        "sortIndex": 3,
        "level": 1,
        "name": "视频中心",
        "code": "media",
        "url": "/media",
        "icon": "icon-shipinwangguan",
        "status": 1,
        "permissions": [],
        "accessSupport": "unsupported",
        "creatorId": "1199596756811550720",
        "createTime": 1648608809680,
        "supportDataAccess": false
    },
    {
        "id": "1508385220776747008",
        "parentId": "1507162853817495552",
        "path": "5Lhl-qOaD",
        "sortIndex": 2,
        "level": 2,
        "name": "规则引擎",
        "code": "rule-engine",
        "url": "/iot/rule-engine",
        "icon": "icon-zidingyiguize",
        "status": 1,
        "permissions": [],
        "accessSupport": "unsupported",
        "buttons": [],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1648462035728,
        "supportDataAccess": false
    },
    {
        "id": "1509002494010966016",
        "parentId": "1508388133506965504",
        "path": "5Lhl-ba0F-7epa",
        "sortIndex": 4,
        "level": 3,
        "name": "日志管理",
        "code": "Log",
        "url": "/iot/link/Log",
        "icon": "icon-rizhifuwu",
        "status": 1,
        "permissions": [{
            "permission": "access-logger",
            "actions": [
                "self-data",
                "query"
            ]
        },
            {
                "permission": "system-logger",
                "actions": [
                    "query"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "access-logger",
                "actions": [
                    "query"
                ]
            },
                {
                    "permission": "system-logger",
                    "actions": [
                        "query"
                    ]
                }
            ]
        }],
        "creatorId": "1199596756811550720",
        "createTime": 1648609205137,
        "supportDataAccess": false
    },
    {
        "id": "1508370378212827136",
        "parentId": "1507167185484652544",
        "path": "5Lhl-pvIx-UbTS",
        "sortIndex": 3,
        "level": 3,
        "name": "设备",
        "code": "device/Instance",
        "url": "/iot/device/Instance",
        "icon": "icon-shebei",
        "status": 1,
        "permissions": [{
            "permission": "device-instance",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "visualization-component",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "protocol-supports",
                "actions": [
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-group",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-api-product",
                "actions": [
                    "query-device-events",
                    "query-device-events-format",
                    "agg-device-property",
                    "query-device-properties",
                    "query-device-log"
                ]
            },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            },
            {
                "permission": "device-msg-task",
                "actions": [
                    "query",
                    "save",
                    "execute"
                ]
            },
            {
                "permission": "device-opt-api",
                "actions": [
                    "read-property",
                    "invoke-function",
                    "write-property"
                ]
            },
            {
                "permission": "dictionary",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-mapping",
                "actions": [
                    "query",
                    "save"
                ]
            },
            {
                "permission": "device-api",
                "actions": [
                    "query-device-events",
                    "query",
                    "get-detail-list",
                    "sync-state",
                    "get-device-info",
                    "batch-unDeploy",
                    "batch-save-device",
                    "agg-device-property",
                    "query-device-properties-latest",
                    "batch-deploy",
                    "query-device-log",
                    "batch-delete",
                    "get-detail"
                ]
            },
            {
                "permission": "device-product",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "dashboard",
                "actions": [
                    "query"
                ]
            }
        ],
        "accessSupport": "support",
        "assetType": "device",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "device-instance",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "export",
                "name": "导出",
                "permissions": [{
                    "permission": "device-instance",
                    "actions": [
                        "query"
                    ]
                }]
            },
            {
                "id": "import",
                "name": "导入",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-instance",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "visualization",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "organization",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-opt-api",
                        "actions": [
                            "read-property",
                            "invoke-function",
                            "write-property"
                        ]
                    },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "dictionary",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-category",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-mapping",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-instance",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "media-server",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "dashboard",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "device-instance",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "device-instance",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-instance",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            }
        ],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1648458496987,
        "supportDataAccess": true
    },
    {
        "id": "1517014910403993600",
        "parentId": "1508385220776747008",
        "path": "5Lhl-qOaD-fhcR",
        "sortIndex": 1,
        "level": 1,
        "name": "告警中心",
        "code": "rule-engine/Alarm",
        "url": "/iot/rule-engine/Alarm",
        "icon": "icon-caidanguanli",
        "status": 1,
        "permissions": [],
        "accessSupport": "unsupported",
        "creatorId": "1199596756811550720",
        "createTime": 1650519514059,
        "supportDataAccess": false
    },
    {
        "id": "1509357743478890496",
        "parentId": "1508388133506965504",
        "path": "5Lhl-ba0F-MJs3",
        "sortIndex": 1,
        "level": 1,
        "name": "流媒体服务",
        "code": "media/Stream",
        "url": "/iot/link/media/Stream",
        "icon": "icon-xuanzetongdao1",
        "status": 1,
        "permissions": [{
            "permission": "media-server",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        }],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "media-gateway",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "media-server",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "media-server",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "media-server",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648693903204,
        "supportDataAccess": false
    },
    {
        "id": "1508376234757251072",
        "parentId": "1507167185484652544",
        "path": "5Lhl-pvIx-ikr6",
        "sortIndex": 1,
        "level": 3,
        "name": "产品分类",
        "code": "device/Category",
        "url": "/iot/device/Category",
        "icon": "icon-chanpinfenlei1",
        "status": 1,
        "permissions": [{
            "permission": "device-category",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        }],
        "accessSupport": "support",
        "assetType": "deviceCategory",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "device-category",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "device-category",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "device-category",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "device-category",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1648459893283,
        "supportDataAccess": true
    },
    {
        "id": "1508697728656568320",
        "parentId": "1508385220776747008",
        "path": "5Lhl-qOaD-Tqbl",
        "sortIndex": 1,
        "level": 3,
        "name": "规则编排",
        "code": "rule-engine/Instance",
        "url": "/iot/rule-engine/Instance",
        "icon": "icon-changjingliandong",
        "status": 1,
        "permissions": [{
            "permission": "rule-instance",
            "actions": [
                "stop",
                "query",
                "start",
                "save",
                "delete",
                "execute"
            ]
        },
            {
                "permission": "rule-model",
                "actions": [
                    "query",
                    "save",
                    "delete",
                    "deploy"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "rule-instance",
                "actions": [
                    "query"
                ]
            },
                {
                    "permission": "rule-model",
                    "actions": [
                        "query"
                    ]
                }
            ]
        },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "rule-instance",
                    "actions": [
                        "stop",
                        "query",
                        "start",
                        "save"
                    ]
                },
                    {
                        "permission": "rule-model",
                        "actions": [
                            "query",
                            "deploy"
                        ]
                    }
                ]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "rule-instance",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "rule-instance",
                    "actions": [
                        "query",
                        "save",
                        "execute"
                    ]
                },
                    {
                        "permission": "rule-model",
                        "actions": [
                            "query",
                            "save",
                            "delete",
                            "deploy"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "rule-instance",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1648536543411,
        "supportDataAccess": false
    },
    {
        "id": "1509002241992015872",
        "parentId": "1509000835335700480",
        "path": "efbr-qGOv",
        "sortIndex": 3,
        "level": 2,
        "name": "分屏展示",
        "code": "media/SplitScreen",
        "url": "/media/SplitScreen",
        "icon": "icon-fenpingzhanshi1",
        "status": 1,
        "permissions": [{
            "permission": "media-device",
            "actions": [
                "stop",
                "ptz",
                "record",
                "query",
                "start",
                "save",
                "delete"
            ]
        },
            {
                "permission": "media-channel",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "media-device",
                "actions": [
                    "query"
                ]
            }]
        }],
        "creatorId": "1199596756811550720",
        "createTime": 1648609145049,
        "supportDataAccess": false
    },
    {
        "id": "1508388133506965504",
        "parentId": "1507162853817495552",
        "path": "5Lhl-ba0F",
        "sortIndex": 4,
        "level": 1,
        "name": "运维管理",
        "code": "link",
        "url": "/iot/link",
        "icon": "icon-yunweiguanli-1",
        "status": 1,
        "permissions": [],
        "accessSupport": "unsupported",
        "creatorId": "1199596756811550720",
        "createTime": 1648462730178,
        "supportDataAccess": false
    },
    {
        "id": "1501477245108465664",
        "parentId": "1500675218505838592",
        "path": "ngRP-RqNl",
        "sortIndex": 4,
        "level": 2,
        "name": "角色管理",
        "code": "system/Role",
        "url": "/system/Role",
        "icon": "icon-jiaoseguanli",
        "status": 1,
        "permissions": [{
            "permission": "user",
            "actions": [
                "query",
                "save",
                "update-self-info",
                "update-self-pwd",
                "delete"
            ]
        },
            {
                "permission": "dimension",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "role",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "permission",
                "actions": [
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "grant",
                    "delete"
                ]
            },
            {
                "permission": "autz-setting",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "role",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "role",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "role",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "menu",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "role",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1646815045985,
        "supportDataAccess": false
    },
    {
        "id": "1517015353259581440",
        "parentId": "1517014910403993600",
        "path": "5Lhl-qOaD-fhcR-riCs",
        "sortIndex": 1,
        "level": 4,
        "name": "告警记录",
        "code": "rule-engine/Alarm/Log",
        "url": "/iot/rule-engine/Alarm/Log",
        "icon": "icon-rizhifuwu",
        "status": 1,
        "permissions": [{
            "permission": "alarm-record",
            "actions": [
                "query",
                "save"
            ]
        }],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "log",
            "name": "告警日志",
            "permissions": [{
                "permission": "alarm-record",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "handle",
                "name": "告警处理",
                "permissions": [{
                    "permission": "alarm-record",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "action",
                "name": "处理记录",
                "permissions": [{
                    "permission": "alarm-record",
                    "actions": [
                        "query"
                    ]
                }]
            },
            {
                "id": "view",
                "name": "查看",
                "permissions": [{
                    "permission": "alarm-record",
                    "actions": [
                        "query"
                    ]
                }]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1650519619653,
        "supportDataAccess": false
    },
    {
        "id": "1507162853817495552",
        "path": "5Lhl",
        "sortIndex": 1,
        "level": 1,
        "name": "物联网",
        "code": "iot",
        "url": "/iot",
        "icon": "icon-wulianwang",
        "status": 1,
        "permissions": [],
        "accessSupport": "unsupported",
        "creatorId": "1199596756811550720",
        "createTime": 1648170600737,
        "supportDataAccess": false
    },
    {
        "id": "1517056621763928064",
        "parentId": "1517014910403993600",
        "path": "5Lhl-qOaD-fhcR-Cjyp",
        "sortIndex": 1,
        "level": 4,
        "name": "基础配置",
        "code": "rule-engine/Alarm/Config",
        "describe": "基础配置",
        "url": "/iot/rule-engine/Alarm/Config",
        "icon": "icon-shebei",
        "status": 1,
        "permissions": [{
            "permission": "alarm-config",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        }],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "update",
            "name": "保存",
            "permissions": [{
                "permission": "alarm-config",
                "actions": [
                    "query",
                    "save"
                ]
            }]
        }],
        "creatorId": "1199596756811550720",
        "createTime": 1650529458825,
        "supportDataAccess": false
    },
    {
        "id": "1508389839737249792",
        "parentId": "1508388133506965504",
        "path": "5Lhl-ba0F-KFBi",
        "sortIndex": 1,
        "level": 1,
        "name": "设备接入网关",
        "code": "link/AccessConfig",
        "url": "/iot/link/accessConfig",
        "icon": "icon-wangguanzishebei",
        "status": 1,
        "permissions": [{
            "permission": "protocol-supports",
            "actions": [
                "enable",
                "disable",
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "opc-point",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "network-config",
                "actions": [
                    "query",
                    "save",
                    "action",
                    "delete"
                ]
            },
            {
                "permission": "device-gateway",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "opc-client",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "opc-device-bind",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "gb28181-cascade",
                "actions": [
                    "bind",
                    "unbind",
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "device-gateway",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "device-gateway",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "device-gateway",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "opc-point",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "network-config",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "opc-client",
                        "actions": [
                            "query",
                            "save",
                            "delete"
                        ]
                    },
                    {
                        "permission": "opc-device-bind",
                        "actions": [
                            "query",
                            "save",
                            "delete"
                        ]
                    },
                    {
                        "permission": "gb28181-cascade",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "opc-point",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "certificate",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "network-config",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "media-gateway",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "opc-client",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "opc-device-bind",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "gb28181-cascade",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648463136975,
        "supportDataAccess": false
    },
    {
        "id": "1508369752477196288",
        "parentId": "1507167185484652544",
        "path": "5Lhl-pvIx-LS9j",
        "sortIndex": 2,
        "level": 3,
        "name": "产品",
        "code": "device/Product",
        "url": "/iot/device/Product",
        "icon": "icon-chanpin",
        "status": 1,
        "permissions": [{
            "permission": "device-instance",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "device-gateway",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "protocol-supports",
                "actions": [
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "network-config",
                "actions": [
                    "query",
                    "save",
                    "action",
                    "delete"
                ]
            },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            },
            {
                "permission": "device-category",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-mapping",
                "actions": [
                    "query",
                    "save"
                ]
            },
            {
                "permission": "device-product",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "support",
        "indirectMenus": [
            "1508369752477196288"
        ],
        "assetType": "product",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "device-product",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-mapping",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-instance",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "save"
                        ]
                    }
                ]
            },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "device-product",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "export",
                "name": "导出",
                "permissions": [{
                    "permission": "device-product",
                    "actions": [
                        "query"
                    ]
                }]
            },
            {
                "id": "import",
                "name": "导入",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query",
                            "save"
                        ]
                    }
                ]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "device-product",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query",
                            "save"
                        ]
                    }
                ]
            }
        ],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1648458347800,
        "supportDataAccess": true
    },
    {
        "id": "1509000432275668992",
        "parentId": "1508388133506965504",
        "path": "5Lhl-ba0F-hmrn",
        "sortIndex": 2,
        "level": 1,
        "name": "网络组件",
        "code": "link/Type",
        "describe": "网络组件的说明",
        "url": "/iot/link/type",
        "icon": "icon-wangluozujian",
        "status": 1,
        "permissions": [{
            "permission": "network-config",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        }],
        "accessSupport": "unsupported",
        "assetType": "network",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "network-config",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "network-config",
                    "actions": [
                        "query",
                        "save",
                        "action"
                    ]
                }]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "network-config",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "network-config",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "network-config",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648608713580,
        "supportDataAccess": false
    },
    {
        "id": "1500675218505838592",
        "path": "ngRP",
        "sortIndex": 5,
        "level": 1,
        "name": "系统管理",
        "code": "system",
        "url": "/system",
        "icon": "icon-xitongguanli1",
        "status": 1,
        "permissions": [{
            "permission": "menu",
            "actions": [
                "query",
                "save",
                "grant",
                "delete"
            ]
        }],
        "accessSupport": "unsupported",
        "assetType": "deviceGateway",
        "buttons": [],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1646623827945,
        "supportDataAccess": false
    },
    {
        "id": "1517324024747286528",
        "parentId": "1500675218505838592",
        "path": "ngRP-XSxV",
        "sortIndex": 1,
        "level": 1,
        "name": "关系配置",
        "code": "system/Relationship",
        "url": "/system/Relationship",
        "icon": "icon-renyuan",
        "status": 1,
        "permissions": [{
            "permission": "relation",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        }],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "update",
            "name": "编辑",
            "permissions": [{
                "permission": "relation",
                "actions": [
                    "query",
                    "save"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "relation",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "view",
                "name": "查看",
                "permissions": [{
                    "permission": "relation",
                    "actions": [
                        "query"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "relation",
                    "actions": [
                        "save"
                    ]
                }]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1650593212662,
        "supportDataAccess": false
    },
    {
        "id": "1509486152238456832",
        "parentId": "1509000835335700480",
        "path": "efbr-bH3y",
        "sortIndex": 2,
        "level": 2,
        "name": "视频设备",
        "code": "media/Device",
        "describe": "视频设备",
        "url": "/media/device",
        "icon": "icon-keshihua",
        "status": 1,
        "permissions": [{
            "permission": "device-gateway",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            },
            {
                "permission": "media-gateway",
                "actions": [
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "media-record",
                "actions": [
                    "record",
                    "query",
                    "sync"
                ]
            },
            {
                "permission": "media-device",
                "actions": [
                    "stop",
                    "ptz",
                    "record",
                    "query",
                    "start",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "media-channel",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "gb28181-cascade",
                "actions": [
                    "bind",
                    "unbind",
                    "enable",
                    "disable",
                    "query",
                    "save",
                    "解绑通道",
                    "delete",
                    "绑定通道"
                ]
            },
            {
                "permission": "device-product",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "indirect",
        "indirectMenus": [
            "1508370378212827136"
        ],
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "media-device",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "media-device",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "media-device",
                        "actions": [
                            "stop",
                            "ptz",
                            "record",
                            "query",
                            "start",
                            "save"
                        ]
                    },
                    {
                        "permission": "media-channel",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "gb28181-cascade",
                        "actions": [
                            "bind",
                            "unbind",
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "file",
                    "actions": [
                        "upload-static"
                    ]
                },
                    {
                        "permission": "device-gateway",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "media-device",
                        "actions": [
                            "query",
                            "save"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648724518244,
        "supportDataAccess": true
    },
    {
        "id": "1508992228061855744",
        "parentId": "1507162853817495552",
        "path": "5Lhl-ugVw",
        "sortIndex": 3,
        "level": 1,
        "name": "通知管理",
        "code": "notice",
        "describe": "通知管理",
        "url": "/iot/notice/Type",
        "icon": "icon-tongzhijilu",
        "status": 1,
        "permissions": [{
            "permission": "user-third-party-manager",
            "actions": [
                "query",
                "save"
            ]
        },
            {
                "permission": "notifier",
                "actions": [
                    "query",
                    "save",
                    "delete",
                    "send"
                ]
            },
            {
                "permission": "template",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "bind",
            "name": "同步用户",
            "permissions": [{
                "permission": "user-third-party-manager",
                "actions": [
                    "query",
                    "save"
                ]
            }]
        },
            {
                "id": "view",
                "name": "查看",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "log",
                "name": "通知记录",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "debug",
                "name": "调试",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query",
                            "send"
                        ]
                    }
                ]
            },
            {
                "id": "export",
                "name": "导出",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query",
                            "save"
                        ]
                    }
                ]
            },
            {
                "id": "import",
                "name": "导入",
                "permissions": [{
                    "permission": "user-third-party-manager",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "delete"
                    ]
                },
                    {
                        "permission": "notifier",
                        "actions": [
                            "delete"
                        ]
                    }
                ]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query",
                            "save"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "template",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "notifier",
                        "actions": [
                            "query",
                            "save"
                        ]
                    }
                ]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648606757542,
        "supportDataAccess": false
    },
    {
        "id": "1508389549759848448",
        "parentId": "1508388133506965504",
        "path": "5Lhl-ba0F-P4wv",
        "sortIndex": 3,
        "level": 3,
        "name": "协议管理",
        "code": "link/Protocol",
        "url": "/iot/link/protocol",
        "icon": "icon-tongzhiguanli",
        "status": 1,
        "permissions": [{
            "permission": "protocol-supports",
            "actions": [
                "enable",
                "disable",
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "protocol-supports",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "enable",
                        "disable",
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "protocol-supports",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    }
                ]
            }
        ],
        "creatorId": "1199596756811550720",
        "createTime": 1648463067839,
        "supportDataAccess": false
    },
    {
        "id": "1501478441437212672",
        "parentId": "1500675218505838592",
        "path": "ngRP-Lygj",
        "sortIndex": 1,
        "level": 2,
        "name": "用户管理",
        "code": "system/User",
        "url": "/system/user",
        "icon": "icon-yonghuguanli",
        "status": 1,
        "permissions": [{
            "permission": "user",
            "actions": [
                "query",
                "save",
                "update-self-info",
                "update-self-pwd",
                "delete"
            ]
        },
            {
                "permission": "role",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "file",
                "actions": [
                    "upload-static"
                ]
            },
            {
                "permission": "organization",
                "actions": [
                    "unbind-user",
                    "query",
                    "save",
                    "bind-user",
                    "delete"
                ]
            }
        ],
        "accessSupport": "support",
        "assetType": "organization",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "user",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "action",
                "name": "启/禁用",
                "permissions": [{
                    "permission": "user",
                    "actions": [
                        "query",
                        "save",
                        "update-self-info"
                    ]
                }]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "user",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "user",
                    "actions": [
                        "query",
                        "save",
                        "update-self-info",
                        "update-self-pwd"
                    ]
                },
                    {
                        "permission": "role",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    },
                    {
                        "permission": "organization",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "user",
                    "actions": [
                        "query",
                        "save"
                    ]
                },
                    {
                        "permission": "role",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "file",
                        "actions": [
                            "upload-static"
                        ]
                    },
                    {
                        "permission": "organization",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            }
        ],
        "options": {
            "switch": true
        },
        "creatorId": "1199596756811550720",
        "createTime": 1646815331213,
        "supportDataAccess": true
    },
    {
        "id": "1500709112592576512",
        "parentId": "1500675218505838592",
        "path": "ngRP-KUqG",
        "sortIndex": 2,
        "level": 2,
        "name": "部门管理",
        "code": "system/Department",
        "url": "/system/Department",
        "icon": "icon-bumenguanli",
        "status": 1,
        "permissions": [{
            "permission": "device-instance",
            "actions": [
                "query",
                "save",
                "delete"
            ]
        },
            {
                "permission": "user",
                "actions": [
                    "query",
                    "save",
                    "update-self-info",
                    "update-self-pwd",
                    "delete"
                ]
            },
            {
                "permission": "assets-bind",
                "actions": [
                    "bind",
                    "unbind",
                    "query",
                    "permission"
                ]
            },
            {
                "permission": "role",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-category",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            },
            {
                "permission": "device-product",
                "actions": [
                    "query",
                    "save",
                    "delete"
                ]
            }
        ],
        "accessSupport": "unsupported",
        "buttons": [{
            "id": "view",
            "name": "查看",
            "permissions": [{
                "permission": "organization",
                "actions": [
                    "query"
                ]
            }]
        },
            {
                "id": "bind-user",
                "name": "绑定用户",
                "permissions": [{
                    "permission": "user",
                    "actions": [
                        "query"
                    ]
                },
                    {
                        "permission": "organization",
                        "actions": [
                            "unbind-user",
                            "query",
                            "bind-user"
                        ]
                    }
                ]
            },
            {
                "id": "assert",
                "name": "分配资产",
                "permissions": [{
                    "permission": "assets-bind",
                    "actions": [
                        "bind",
                        "unbind",
                        "query",
                        "permission"
                    ]
                },
                    {
                        "permission": "device-category",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-instance",
                        "actions": [
                            "query"
                        ]
                    },
                    {
                        "permission": "device-product",
                        "actions": [
                            "query"
                        ]
                    }
                ]
            },
            {
                "id": "delete",
                "name": "删除",
                "permissions": [{
                    "permission": "organization",
                    "actions": [
                        "delete"
                    ]
                }]
            },
            {
                "id": "update",
                "name": "编辑",
                "permissions": [{
                    "permission": "organization",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            },
            {
                "id": "add",
                "name": "新增",
                "permissions": [{
                    "permission": "organization",
                    "actions": [
                        "query",
                        "save"
                    ]
                }]
            }
        ],
        "options": {
            "switch": false
        },
        "creatorId": "1199596756811550720",
        "createTime": 1646631908923,
        "supportDataAccess": false
    }
]
//版本更新信息
var versions = [
    {
        version: "3.0.0",
        upgrade: function (context) {

        }
    }
];

function initialize(context) {
    var database = context.database;

    // database.dml().upsert("s_autz_setting_info").values(autzSettings).execute().sync();
    database.dml().upsert("s_user").values(users).execute().sync();
    // database.dml().upsert("s_menu").values(menus).execute().sync();
}

function install(context) {


}


//设置依赖
dependency.setup(info)
    .onInstall(install)
    .onUpgrade(function (context) { //更新时执行
        var upgrader = context.upgrader;
        upgrader.filter(versions)
            .upgrade(function (newVer) {
                newVer.upgrade(context);
            });
    })
    .onUninstall(function (context) { //卸载时执行

    }).onInitialize(initialize);